package com.powerrich.shopcommen.controller;

import com.powerrich.pojo.VipPO;
import com.powerrich.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("commen")
public class CommenController {

    @Autowired
    private VipService vipService;

    @GetMapping("getVipById")
    @ResponseBody
    public VipPO getVipById(){
        return vipService.getVipById(1);
    }

    @GetMapping("hello")
    public String hello(){
        return "hello Comment";
    }
}
